package com.example.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class UC1Activity extends Activity
{
    Button button1;
    Button button2;
    Button button3;
    Button button4;
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uc1);
        button1 = findViewById(R.id.bn1);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1Activity.this,UC1_1Activity.class);
                startActivity(intent);
            }


        });
        button2 = findViewById(R.id.bn2);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1Activity.this,UC1Activity.class);
                startActivity(intent);
            }


        });

        button3 = findViewById(R.id.bn3);
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1Activity.this,UC1_2Activity.class);
                startActivity(intent);
            }


        });

        button4 = findViewById(R.id.bn4);
        button4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1Activity.this,MainActivity.class);
                startActivity(intent);
            }


        });
    }
}